package com.lky.project.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: 张
 * @time： 2023 - 04 - 30 - 17:23:45
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    private int code;
    private String message;
    private Object data;

    public static Result ok(Object data){
        return new Result(200,"ok",data);
    }

    public static Result ok(){
        return new Result(200,"ok",null);
    }

}
